import { useThemeConfigStore } from "@renderer/store/modules/themeConfig";
const themeConfigStore: any = useThemeConfigStore();

let config = JSON.parse(JSON.stringify(themeConfigStore.globalTheme));
export const lineCharts_staticData = {
  xAxis: [
    "1月",
    "2月",
    "3月",
    "4月",
    "5月",
    "6月",
    "7月",
    "8月",
    "9月",
    "10月",
    "11月",
    "12月",
  ],
  data: [
    {
      name: "data1",
      value: [110, 132, 101, 134, 90, 230, 210, 130, 132, 101, 134, 90],
    },
    {
      name: "data2",
      value: [120, 132, 101, 134, 320, 230, 210, 120, 132, 101, 134, 90],
    },
    {
      name: "data3",
      value: [120, 132, 101, 134, 90, 230, 210, 120, 132, 101, 134, 90],
    },
  ],
};
config.xAxis.data = lineCharts_staticData.xAxis;
export const lineCharts = {
  ...config,
  ifEcharts: true,

  series: [
    {
      name: lineCharts_staticData.data[0].name,
      type: "line",
      symbol: "none", // 默认是空心圆（中间是白色的），改成实心圆
      symbolSize: 4,
      smooth: true,
      emphasis: {
        disabled: true,
        focus: "none",
      },
      label: {
        show: true,
        position: "top",
        color: "#fff",
        fontSize: 22,
      },
      lineStyle: {
        width: 3,
        type: "solid",
      },
      areaStyle: {
        opacity: 0.3,
      },
      data: lineCharts_staticData.data[0].value,
    },
    {
      name: lineCharts_staticData.data[1].name,
      type: "line",
      symbol: "none", // 默认是空心圆（中间是白色的），改成实心圆
      symbolSize: 4,
      smooth: true,
      emphasis: {
        disabled: true,
        focus: "none",
      },
      label: {
        show: true,
        position: "top",
        color: "#fff",
        fontSize: 22,
      },
      lineStyle: {
        width: 3,
        type: "solid",
      },
      areaStyle: {
        opacity: 0.3,
      },
      data: lineCharts_staticData.data[1].value,
    },
  ],
};
